<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<script src="js/mui.min.js"></script>
	</head>
	<body>
		<button onclick="a()">按钮a</button>
		<button onclick="b()">按钮b</button>
	</body>

	
	<script>
		function a(){
			mui.ajax({
				type:"post",
				url: 'http://127.0.0.1:8080/myPro2_war_exploded/login_Servlet',
				async:false,
				data: {
					name:"username",
					password:"123456"
				},
				dataType: "json",
				contentType: "application/x-www-form-urlencoded; charset=utf-8",
				jsonp: "jsoncallback",
				success: function(data){
					console.log("success");
				},
				error: function(){
					console.log("error");
				}
			});
		}
		
		function b(){
			mui.openWindow('test.html?a=123');
		}
		
	</script>
</html>
